﻿@model JuniorProject.Models.Employee.HiringSpecialistAppModel

@{
    ViewBag.Title = "ApplicationDetails";
    ViewBag.HSAM = Model;
}

@Html.Partial("_EmployeeTopNavBar", ViewData["ApplicationID, AccessLevel"])
<h2>
Application Overview
</h2>
<br />

<fieldset>
    <legend>ApplicationDetails</legend>    
    <div class="display-label">
         @Html.DisplayNameFor(model => model.UserID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserID)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.FirstName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FirstName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.LastName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.JobPostingID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobPostingID)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.JobTitle)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobTitle)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.JobLocation)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobLocation)
    </div>  

    <div class="display-label">
         @Html.DisplayNameFor(model => model.PostingDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PostingDate.Month).
        @Html.DisplayFor(model => model.PostingDate.Day).
        @Html.DisplayFor(model => model.PostingDate.Year)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.BGCheck)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.BGCheck)
        @{if (Model.BGCheck == false &&
              (string.Equals(ViewData["AccessLevel"], "2") || string.Equals(ViewData["AccessLevel"], "5")))
        {
            @Html.ActionLink("Perform Background Check", "BackgroundCheck", new { id = Model.ID })
        };}
    </div>
</fieldset>

<p>
    @Html.Partial("_EmployeeBottomNavBar", ViewData["AccessLevel"])
</p>
